import { ApiProperty } from '@nestjs/swagger';
import { BaseResult, BaseScrollPageListResult } from "@/common/base/base.result";
import { BooleanNumber } from "common/utils/data";

export class MessageIndexResult extends BaseScrollPageListResult{
  @ApiProperty({
    description: '内容',
  })
  content: string;

  @ApiProperty({
    description: '是否已读',
  })
  isRead: BooleanNumber;

  @ApiProperty({
    description: '创建时间',
  })
  createTime: number;
}

export class MessageCountUnreadResult{
  @ApiProperty({
    description: '未读数',
  })
  count: number;
}
